#ifndef CONNECTION_H
#define CONNECTION_H

#include <stdlib.h>
#include<vector>
#include <iostream>

using namespace std;

class connection
{

public:
    struct connectionStructure
    {
        int protocol; //0=UDP, 1=TCP
        string srcIP;
        int srcPort;
        string destIP;
        int destPort;
        long tm;
    };
    connection();
    void addConnection(string,string,string,string,string,long);
    void addConnection(int,string,int,string,int,long);
    void removeConnection(int);
    connectionStructure getConnection(int);
    void printConnections();

private:
    int maxStorage;
    int Storage;
    vector<connectionStructure> data;

};

#endif // CONNECTION_H
